package com.zg.common.core.dao.indiv.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.zg.common.core.dao.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;

/**
* @author zg
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class IndivDataType extends BaseEntity {

    /**
    * 租户id
    */
    private Long tenantId;
    /**
     * 空间id
     */
    private Long spaceId;
    /**
    * 目录id
    */
    private Long folderId;
    /**
    * 数据类型名称
    */
    private String name;
    /**
    * 类型：0表单，1文件
    */
    private Integer type;
    /**
    * 表单id
    */
    @TableField(updateStrategy = FieldStrategy.ALWAYS, jdbcType = JdbcType.BIGINT)
    private Long formId;
    /**
    * 支持的文件类型，多个以,隔开
    */
    @TableField(updateStrategy = FieldStrategy.ALWAYS, jdbcType = JdbcType.VARCHAR)
    private String fileType;

}
